package fr.jhaccoun.demenager_eco.commun;

import org.apache.commons.lang.Validate;

public class FriendlyException extends Exception {
 
	private static final long serialVersionUID = 1L;
	
	private String key;
	
	public FriendlyException(String key){ 
		setKey(key);
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		Validate.notEmpty(key);
		this.key = key;
	}
	

}
